/*朱 itsm2.0  2018-10-22*/
window.onload = function() {
  var requireJs = "../require/";
  var twopage = "../twopage/";
  var c_ss = "../css/";
  var threepage = "../threepage/";
  var font = "../font/";

  require.config({
    //改变基目录(baseUrl)路径,baseUrl:'js',
    paths: {
      domReady: requireJs + "r-domReady",
      requireCss: requireJs + "r-css",
      requireText: requireJs + "r-text",
      requireJson: requireJs + "r-json",
      requireImage: requireJs + "r-image",
      jquery: [
        "https://cdn.bootcss.com/jquery/1.12.4/jquery.min",
        requireJs + "jquery.min1.12.4"
      ],
      echarts: [
        "https://cdn.bootcss.com/echarts/2.2.7/echarts-all",
        requireJs + "echarts2-all"
      ],
      qrouter: requireJs + "qrouter",
      canvass: requireJs + "radialIndicator.min",
      index: "index",
      work: "work",
      gongdan: "gongdan",
      fuwuzhiliang: "fuwuzhiliang",
      ages: "ages",
      fuwuguzhang: "fuwuguzhang",
      fuwuguzhang2: "fuwuguzhang2",

      workhtml: twopage + "work.html",
      gongdanhtml: twopage + "gongdan.html",
      fuwuzhilianghtml: twopage + "fuwuzhiliang.html", // fuwu box
      ageshtml: twopage + "ages.html",
      workjd: threepage + "workjiandan.html",
      workwd: threepage + "workwode.html",
      workcx: threepage + "workchaxun.html",
      gongdangzhtml: threepage + "gongdangguzhang.html",
      fuwuguzhanghtml: threepage + "fuwuguzhang.html",
      fuwuguzhang2html: threepage + "fuwuguzhang2.html",
      agexinxi: threepage + "agexinxi.html",

      workcss: c_ss + "work",
      gongdancss: c_ss + "gongdan",
      agescss: c_ss + "ages",
      workjdcss: c_ss + "workjiandan",
      workcxcss: c_ss + "workchaxun",
      gongdangzcss: c_ss + "gongdangz",
      fuwuzhiliangcss: c_ss + "fuwuzhiliang",
      fuwuguanlicss: c_ss + "fuwuguanli"
    },
    // 加载不符合AMD规范的模块
    shim: {
      "radialIndicator.min": {
        exports: "jquery"
      },
    //   qrouter: {
    //     exports: "jquery"
    //   },
      canvas: {
        //这个数组表示该模块的依赖姓，依赖jquery
        deps: ["radialIndicator.min", "jquery"]
        //    exports: 'radialIndicator.min'
      }
    }
  });

  //回调函数在页面DOM结构加载完成后再运行
  require(["domReady!", "index"], function(dom, app) {
    app.init();
  });

  
}; // onload end
